#pragma once

#include<stdio.h>
#include<stdlib.h>

typedef struct zb{
	int x;
	int y;
} type;

typedef struct List{
	struct Node* head;
}List;

typedef struct Node{
    type val;
	struct Node* next;
	struct Node* prev;
}Node;


List* GetList();

void PushBack(List* list, type val);
void PushFront(List* list, type val);
void PushPos(Node* pos, type val);

void PopBack(List* list);
void PopPos(Node* pos);
int Empty(List* list);
void Destroy(List* list);